home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 519 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: news.helsinki.fi!kruuna!tksuoran
  2. From: tksuoran@cc.Helsinki.FI (Timo K Suoranta)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Getting lotsa small blits into action in C
  5. Date: 8 Jan 1996 21:52:06 GMT
  6. Organization: University of Helsinki
  7. Message-ID: <4cs3m6$7l5@oravannahka.Helsinki.FI>
  8. NNTP-Posting-Host: kruuna.helsinki.fi
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=ISO-8859-1
  11. Content-Transfer-Encoding: 8bit
  12. X-Newsreader: TIN [version 1.2 PL0]
  13.  
  14. I am converting my Blitz program into C. This proggy involves heavy
  15. usage of little grfx pieces to be blitted around. In Blitz they are
  16. called Shapes.
  17.  
  18. The first problem is: How do I get them into memory? Should I include
  19. them, or load from disk?
  20.  
  21. I fear that I need to convert my grfx into something else (binary) than
  22. an IFF piccy. In Blitz I wrote a small proggy to grab these shapes from
  23. pic and save them in Blitz Shapes file. I will _not_ be able to use
  24. simple pic->binary converter as I have all pieces in one (ok, two) pics,
  25. and I need two grab several sized pieces from it.
  26.  
  27. So I am about to write own IFF loader and converter. Is IFF loader easy
  28. to do? How should I do the loading, and where can I get examples? What
  29. are the exact specs for the format which I could easily load in the main
  30. proggy? How should I load andstore the grfx in memory?
  31.  
  32. Idea of the loader is that I can change the graohics and only thing I
  33. need to do is to run grabber. I am also able to add/remove or change
  34. size of the grfx easily.
  35.  
  36. Then.. What blitting routines should I use? Should I do blitting into
  37. screen bitmap or window, or do is doing both alternatives easy? Id like
  38. my proggy to support grfxcards and maybe even run it in WB window.
  39.  
  40. Most of my shapes have fixed size and fixed mask. I need the mask too,
  41. because my shapes are hexagons, not tiles. I also need selecting of
  42. bitmaps which to blit and which not to blit - this is together with
  43. shapes with individual masks.
  44.  
  45. I would also like to get some blitting example sources, with the extra
  46. mentioned above.
  47.  
  48.  
  49. Thank You!
  50.  
  51. --
  52.  
  53. -Timo Suoranta, Helsinki, Finland.
  54.